﻿@model Romantics.Domain.Objects.PhotoAlbumItem
@using Romantics
@{
  var addThisUrl = Model.Options.AddThisURL;
  string[] buttons = new string[] {
      "addthis_button_preferred_1", "addthis_button_preferred_2", "addthis_button_preferred_3", "addthis_button_preferred_4",
      "addthis_button_odnoklassniki_ru", "addthis_button_vk", "addthis_button_mymailru", "addthis_button_moikrug", "addthis_button_vkrugudruzei",
      "addthis_button_compact", "addthis_counter addthis_bubble_style"
  };

}
<!-- AddThis Button BEGIN -->
<div class="addthis_toolbox addthis_default_style">
    @{foreach(string button in buttons)
      {
          <a class="@button" addthis:url="@(string.Format("http://localhost{0}", Model.Href(Url)))" addthis:title="@Model.PhotoAlbum.Name" addthis:description="@Model.PhotoAlbum.Name"></a>
      }
    }

</div>
<script type="text/javascript">var addthis_config = {"data_track_addressbar":true};</script>
<script type="text/javascript" src="@addThisUrl"></script>
<!-- AddThis Button END -->